<form name="registrationForm" action="{$currentUrl}" method="post">
	{if $okMessage}<h2>{$okMessage}</h2>{/if}
	{if $errorMessage}<h2>{$errorMessage}</h2>{/if}

	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td><label for="username"> Kasutajanimi: </label></td>
			<td><input id="username" type="text" name="username" value="{$user->username}" /></td>
		</tr>
		<tr>
			<td><label for="password1"> Parool: </label></td>
			<td><input id="password1" type="password" name="password1" /></td>
		</tr>
		<tr>
			<td><label for="password2"> Parool uuesti: </label></td>
			<td><input id="password2" type="password" name="password2" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td><label for="email1"> Email: </label></td>
			<td><input id="email1" type="text" name="email1" value="{$user->email}" /></td>
		</tr>
		<tr>
			<td><label for="email2"> Email uuesti: </label></td>
			<td><input id="email2" type="text" name="email2" value="{$user->email}" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		
		<tr>
			<td><label for="firstName"> Eesnimi: </label></td>
			<td><input id="firstName" type="text" name="firstName" value="{$user->firstName}" /></td>
		</tr>
		<tr>
			<td><label for="lastName"> Perenimi: </label></td>
			<td><input id="lastName" type="text" name="lastName" value="{$user->lastName}" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td align="right"><img src="{$pageUrl}Users/captcha/c{math equation="rand(0,99999999999999)"}.jpg"/></td>
			<td><input type="text" name="code"/></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" name="register" value="Nõustun reeglitega, registreeri!" /></td>
		</tr>
	</table>
</form>